//
//  YTCitySeletedViewModel.h
//  YiTuDriverClient
//
//  Created by 石少庸 on 2017/5/12.
//  Copyright © 2017年 Yitu. All rights reserved.
//

#import "YTTableViewModel.h"

@class YTCityModel, YTCountryModel;
@interface YTCitySeletedViewModel : YTTableViewModel<UISearchBarDelegate>

@property (assign, nonatomic) BOOL isSearch;
@property (assign, nonatomic) BOOL isInland;
@property (strong, nonatomic) NSMutableDictionary<NSString *, NSArray<YTCountryModel *> *> *dataDict;
@property (strong, nonatomic) NSMutableArray<YTCityModel *> *searchArray;
@property (strong, nonatomic) NSMutableArray<NSString *> *keyArray;
@property (strong, nonatomic) NSMutableArray<NSString *> *selectArray;
@property (strong, nonatomic) NSMutableArray<NSString *> *selectIDArray;
@property (strong, nonatomic) NSMutableArray<NSString *> *deleteArray;

@property (strong, nonatomic) NSMutableArray<YTCityModel *> *cityArray;
@property (strong, nonatomic, readonly) RACCommand *showCityCommand;

@property (strong, nonatomic, readonly) RACSignal *searchSignal;
@property (strong, nonatomic, readonly) RACCommand *loadDataCommand;
@property (strong, nonatomic, readonly) RACCommand *searchCommand;
@property (strong, nonatomic, readonly) RACCommand *deleteCommand;

@end
